<template>
  <div>
       <!-- 2. 值 -> 标签原生属性上 -->
    <!-- 语法: v-bind:原生属性名="vue变量" -->
    <a v-bind:href='url'>百度一下</a>
    <!-- 语法: :原生属性名="vue变量" -->
    <img :src="imgUrl" />
    <img :src="localImg">
  </div>
</template>

<script>
import imgObj from "../assets/1.gif";
export default {
    data () {
        return {
            url:'http://www.baidu.com' ,
            imgObj:'http://yun.itheima.com/Upload/./Images/20210412/60741c11ab77b.jpg',
            localImg:imgObj
        }
    }
}
</script>

<style>

</style>